import java.util.ArrayList;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 86183
 * Date: 2024-01-04
 * Time: 22:11
 */
public class Test {
    public static void main(String[] args) {
        CardList cardList=new CardList();

        ArrayList<Card > cards= cardList.buyCard();
        System.out.println("买牌:");
        System.out.println(cards);
        cardList.washCard(cards);
        System.out.println("洗牌:");
        System.out.println(cards);

        System.out.println("发牌");
        ArrayList<ArrayList<Card>> hands=new ArrayList<>();
        cardList.getCard(cards,hands);
        //System.out.println(cardList.getCard(cards));
        for (int i = 0; i < hands.size(); i++) {
            System.out.println("第"+(i+1)+"人手中的牌:"+hands.get(i));
        }
        System.out.println("剩余的牌");
        System.out.println(cards);
    }

}
